﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using log4net;
using log4net.Util;

namespace Eshouse.Bll
{
    public class logRecord
    {
        /// <summary>
        /// 记录错误
        /// </summary>
        /// <param name="userMsg"></param>
        /// <param name="ex"></param>
        public static void RecordErr(string userMsg, Exception ex)
        {


            log4net.ILog log = log4net.LogManager.GetLogger("SMSLogger");
            log.Error(DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss") + "：" + userMsg, ex);
        }
    }
}
